function findtdetail($scope, CertusFormAjax,$routeParams) {
    CertusFormAjax.ajax('findWaitInfo',{"processId":$routeParams.processId},function (response) {
        var data = response.data.appInfo;
        $scope.id = data.id;
        $scope.tripNum = data.trip_num;
        $scope.userName = data.user_name;
        $scope.planStime = data.trip_star_time;
        $scope.planEtime = data.trip_end_time;
        $scope.deptName = data.department_name;
        var bugetInfo = response.data.bugetInfo;
        $scope.spMoney = 0;
        $scope.wspMoney = 0;
        for (var i=0;i<bugetInfo.length;i++){
            if (bugetInfo[i].status==1){
                $scope.spMoney = bugetInfo[i].buget;
            }else {
                $scope.wspMoney = bugetInfo[i].buget;
            }
        }
        if(data.type==1){
            $scope.type ="出差";
        }else{
            $scope.type ="公干";
        }
    });
    CertusFormAjax.ajax('findCCWaitInfo',{"processId":$routeParams.processId},function (response) {
        var data = response.data;
        var plans = [];
        for (var i=0;i<data.length;i++){
            if (data[i].proPlans[0].planResult==0){
                data[i].proPlans[0].planResult="待审批";
            }else if (data[i].proPlans[0].planResult==1){
                data[i].proPlans[0].planResult="同意";
            }else if (data[i].proPlans[0].planResult==2){
                data[i].proPlans[0].planResult="退回";
            }else if (data[i].proPlans[0].planResult==3){
                data[i].proPlans[0].planResult="不同意";
            }else if (data[i].proPlans[0].planResult==4){
                data[i].proPlans[0].planResult="审批通过";
            }else if (data[i].proPlans[0].planResult==5){
                data[i].proPlans[0].planResult="主动取消";
            }else{
                data[i].proPlans[0].planResult="出差结果审批通过";
            }
            data[i].proPlans[0].bugetsl = data[i].bugets;
            plans.push(data[i].proPlans[0]);
        }
        $scope.plans = plans;
    });
    CertusFormAjax.ajax("findApliNode",{"processId":$routeParams.processId},function (response) {
        var data = response.data;
        var appList = data.appMap;
        var sList = data.sMap;
        var eList = data.eMap;
        var html="";
        var dlength = appList.length;
        for(var i=0;i<dlength;i++){
            html+="<li><span>"+appList[i].createUser+"</span><span>"+appList[i].createTime+"</span>";
            if (appList[i].nodeFlag==1){
                html+="<span>发起申请</span>";
            }else if (appList[i].nodeFlag == 3){
                html+="<span>退回</span>";
            }else if (appList[i].nodeFlag == 4){
                html+="<span>同意申请</span>";
            }else if (appList[i].nodeFlag == 5) {
                html+="<span>取消申请</span>";
            }else if (appList[i].nodeFlag == 8) {
                html+="<span>提交出差结果</span>";
            }else if (appList[i].nodeFlag == 10) {
                html+="<span>审批通过</span>";
            }else{
                html+="<span>出差汇总</span>";
            }
            html+="</li>";

            if (appList[i].nodeFlag==1){
                //拼接子流程项目审批的信息
                for (var j=0;j<sList.length;j++){
                    html+="<li><span>"+sList[j].createUser+"</span><span>"+sList[j].createTime+"</span>";
                    if (sList[j].nodeFlag==1){
                        html+="<span>发起流程-项目确认出差/公干需求申请</span>";
                    }else if (sList[j].nodeFlag==2){
                        html+="<span>拒绝，审批意见："+sList[j].opinionMsg+"</span>";
                    }else if (sList[j].nodeFlag == 3){
                        html+="<span>退回，审批意见："+sList[j].opinionMsg+"</span>";
                    }else if (sList[j].nodeFlag==4){
                        html+="<span>"+sList[j].proName+"申请通过，审批意见："+sList[j].opinionMsg+"</span>";
                    }else if (sList[j].nodeFlag==5){
                        html+="<span>取消申请</span>";
                    }else if (sList[j].nodeFlag==6){
                        html+="<span>提交"+sList[j].proName+"出差结果</span>";
                    }else if (sList[j].nodeFlag==0){
                        html+="<span>同意，审批意见："+sList[j].opinionMsg+"</span>";
                    }else{
                        html+="<span>"+sList[j].proName+"审批通过</span>";
                    }
                    html+="</li>";
                }
            };
            if (appList[i].nodeFlag==8){
                //拼接子流程项目审批的信息
                for (var j=0;j<eList.length;j++){
                    html+="<li><span>"+eList[j].createUser+"</span><span>"+eList[j].createTime+"</span>";
                    if (eList[j].nodeFlag==1){
                        html+="<span>发起申请</span>";
                    }else if (eList[j].nodeFlag==2){
                        html+="<span>拒绝，审批意见："+eList[j].opinionMsg+"</span>";
                    }else if (eList[j].nodeFlag == 3){
                        html+="<span>退回，审批意见："+eList[j].opinionMsg+"</span>";
                    }else if (eList[j].nodeFlag==4){
                        html+="<span>"+eList[j].proName+"申请通过，审批意见："+eList[j].opinionMsg+"</span>";
                    }else if (eList[j].nodeFlag==5){
                        html+="<span>取消申请</span>";
                    }else if (eList[j].nodeFlag==6){
                        html+="<span>提交"+eList[j].proName+"出差结果</span>";
                    }else if (eList[j].nodeFlag==0){
                        html+="<span>同意，审批意见："+eList[j].opinionMsg+"</span>";
                    }else{
                        html+="<span>"+eList[j].proName+"审批通过</span>";
                    }
                    html+="</li>";
                }
            }
        }
        $("#containerUl").append(html);
    });
}